﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ShopeeSdk.Response.Shopee.Item
{
    public class AddVariationsResponse : ShopeeResponse
    {
        [JsonProperty("item_id")]
        public int ItemId { get; set; }

        [JsonProperty("modified_time")]
        public int ModifiedTime { get; set; }

        [JsonProperty("variations")]
        public List<Variation> Variations { get; set; }


        public class Variation
        {
            [JsonProperty("variation_id")]
            public int VariationId { get; set; }

            [JsonProperty("variation_sku")]
            public string VariationSku { get; set; }

            [JsonProperty("name")]
            public string Name { get; set; }

            [JsonProperty("stock")]
            public int Stock { get; set; }

            [JsonProperty("price")]
            public float Price { get; set; }

            [JsonProperty("status")]
            public string Status { get; set; }

            [JsonProperty("create_time")]
            public int CreateTime { get; set; }

            [JsonProperty("update_time")]
            public int UpdateTime { get; set; }

            [JsonProperty("original_price")]
            public float OriginalPrice { get; set; }
        }
    }
}
